import Vue from "vue";
import VueRouter from "vue-router";
import tabBar from "@/components/tabBar/Index.vue";

Vue.use(VueRouter);

const routes = [

  {
    path: "/",
    components: {
      default: () =>
        import(/* webpackChunkName: "index" */ "@/views/index/Index.vue"),
      tabBar,
    },
  },
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
